function initAxes(obj,parent)

% This file is part of CISNE.
%
%     CISNE is free software: you can redistribute it and/or modify
%     it under the terms of the GNU General Public License as published by
%     the Free Software Foundation, either version 3 of the License, or
%     any later version.
%
%     CISNE is distributed in the hope that it will be useful,
%     but WITHOUT ANY WARRANTY; without even the implied warranty of
%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%     GNU General Public License for more details.
%
%     You should have received a copy of the GNU General Public License
%     along with CISNE.  If not, see <http://www.gnu.org/licenses/>.

% Copyright 2011. Jose Maria Garcia-Valdecasas Bernal

obj.m_pSize=get(parent,'Position');
obj.m_inputAx=axes('Parent',parent,'Units','pixels',...
    'Position',[12 12 obj.m_pSize(3)-24 obj.m_pSize(4)-24]);
axis(obj.m_inputAx,'image','xy');
hold(obj.m_inputAx,'on');
obj.m_compAx=axes('Parent',parent,'Units','pixels',...
    'Position',[12 12 obj.m_pSize(3)-24 obj.m_pSize(4)-24]);
axis(obj.m_compAx,'image','xy','off');
hold(obj.m_compAx,'on');
obj.refreshAxes();
